package parkshop.pmcourse.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import parkshop.pmcourse.domain.Advertisement;
import parkshop.pmcourse.dto.PageBean;
import parkshop.pmcourse.dto.User;

public interface AdvertisementService {
	
	public boolean saveAdvertisement(Advertisement advertisement,User user,HttpServletRequest request);
	
	public List<Advertisement> getAdvertisementsByUserId(String userType,Long userId);
	public List<Advertisement> getAdvertisementsByShopId(Long userId);
	
	public boolean deleteAdvertisements(Long advertisementId,User user);
	public boolean updateAdvertisements(Advertisement advertisement,HttpServletRequest request);
	
	public Advertisement getAdvertisementByADId(Long id);

	public PageBean getPageAdvertisementsByUserId(String userType,Long userId,int pageNumber);
}
